import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 查询党员发展列表
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/basic-info-devel-party-members/queryPageByCondition',
    method: 'get',
    params: data
  })
}

// id查询党员发展详情
export function queryById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/basic-info-devel-party-members/queryById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 删除党员发展
export function deleteById (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + `/basic-info-devel-party-members/deleteById/${data.id}`,
    method: 'get',
    params: data
  })
}

// 新增党员发展
export function add (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/basic-info-devel-party-members/add',
    method: 'post',
    data
  })
}

// 编辑党员发展
export function edit (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/basic-info-devel-party-members/edit',
    method: 'post',
    data
  })
}
